<?php

//print_r($_POST);

require_once 'utility.php';
require_once 'html/htmlHelper.php';
$name = $_POST['name'];
$email = $_POST['email'];
$agency = $_POST['agency'];
$role = $_POST['roleDropdown'];

$message = "Name: $name Email: $email Agency: $agency Role: $role";

//echo getSignupResponsePage(sendSignupRequest($message));
echo getSignupResponsePage(true);
function getSignupResponsePage($success){
    if($success){
        $response = 'Signup Request submitted successfully. An email will be sent when your request is approved.';
    }
    else{
        $response = 'Error submitting Request.';
    }
    $output = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <!--<link rel="stylesheet" type="text/css" href="http://127.0.0.1/metocSpace/css/default.css" />-->
<link rel="stylesheet" type="text/css" href="css/default.css" />
    </head>
    <body>
        <div align = "center"><h1>METOC Space Portfolio</h1></div>
        <div align="center"><a href="index.html"><img border="0" src="images/logo.jpg" /></a></div><br /><div align="center"></div>
        <!-- Login Form BEGIN -->
        <br />
        <table class="mainMenu">
            <tr>
                <td class="menu">
                    <a class="white" href="index.html">Home</a>
                </td>
            </tr> 
        </table>
        <br></br>
        <div align="center">
            <h3>'.$response.'
        </div>

        <br />
        <div class="warning" align="center">
            
        </div>

        <br />
        <hr size="1" />
        <table border="0" width="100%" cellspacing="0" cellpadding="0"><tr valign="top"><td>	
                </td><td>
                </td></tr></table>
    </body>
</html>';
   return $output;
}
?>
